from machine import Pin,PWM
import time

p19=PWM(Pin(19))
p19.freq(50)
#22-75 右旋
#79-132 左旋
p19.duty(75)
time.sleep_ms(500)
p19.duty(0)
time.sleep(1)
p19.duty(79)
time.sleep_ms(500)
p19.duty(0)
time.sleep(1)
#for i in range(130,132,1):
#    print(i)
#    p19.duty(i)
#    time.sleep_ms(20)
#    p19.duty(0)
#    time.sleep_ms(20)
#    time.sleep(1)
    
    
    
